import request from '@/utils/request'

// 查询人员卡包信息列表
export function listStudentCard (query) {
  return request({
    url: '/manager/studentCard/list',
    method: 'get',
    params: query
  })
}

// 查询人员卡包信息列表
export function incountReportPage (query) {
  return request({
    url: '/manager/studentCard/page',
    method: 'get',
    params: query
  })
}

//延期管理列表
export function delayPage (query) {
  return request({
    url: '/manager/studentCard/delayPage',
    method: 'get',
    params: query
  })
}

//延期管理列表
export function queryClassCount (query) {
  return request({
    url: '/manager/studentCard/queryClassCount',
    method: 'get',
    params: query
  })
}

//退款管理列表
export function refundPage (query) {
  return request({
    url: '/manager/studentCard/refundPage',
    method: 'get',
    params: query
  })
}

// 查询人员卡包信息详细
export function getStudentCard (id,deptId) {
  return request({
    url: '/manager/studentCard/' + id + '/' + deptId,
    method: 'get'
  })
}

// 新增人员卡包信息
export function addStudentCard (data) {
  return request({
    url: '/manager/studentCard',
    method: 'post',
    data: data
  })
}

// 删除人员卡包信息
export function removeCard (data) {
  return request({
    url: '/manager/studentCard/removeCard',
    method: 'post',
    data: data
  })
}

// 赠卡
export function saveGift (data) {
  return request({
    url: '/manager/studentCard/saveGift',
    method: 'post',
    data: data
  })
}

// 修改剩余数量
export function changeRemainCount (data) {
  return request({
    url: '/manager/studentCard/changeRemainCount',
    method: 'post',
    data: data
  })
}

// 延期
export function delay (data) {
  return request({
    url: '/manager/studentCard/delay',
    method: 'post',
    data: data
  })
}

// 修改人员卡包信息
export function updateStudentCard (data) {
  return request({
    url: '/manager/studentCard',
    method: 'put',
    data: data
  })
}

// 删除人员卡包信息
export function delStudentCard (id) {
  return request({
    url: '/manager/studentCard/' + id,
    method: 'delete'
  })
}


//查看停卡延期记录
export function delayRecard (query) {
  return request({
    url: '/manager/delay/list',
    method: 'get',
    params: query
  })
}